<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['数据管理','实验数据下载']" icon="fa fa-download" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>实验数据下载</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">							
							<div class="left page-header-btn">
								<sa-company-tree-car companyTreeId="companyTree" (companySelected)="companySelected($event)"></sa-company-tree-car>
								<div class="top_module" style="min-width: 140px;border: 1px solid #ccc;border-radius: 4px;overflow: hidden;">
									<span class="module_text" style="display: inline-block;width: 62px;vertical-align: top;border-radius: 0;">设备ID</span>
									<input class="form-control" [(ngModel)]='deviceId'  type="text" disabled onfocus="this.blur()" placeholder="" style="border:none;display: inline-block;width:148px;height: 26px;"/>
								</div>
								<div class="selectDate top_module">
									<div class="input-daterange input-group s_selected_time_box s_hover_box">
										<input type="text" [(ngModel)]='startTime' class="form-control s_selected_time" id="datetimepicker1"  autocomplete="off" placeholder="选择开始时间"/>
										<span class="s_selected_time_spe">至</span>
										<input type="text" [(ngModel)]='endTime' class="form-control s_selected_time" id="datetimepicker2"  autocomplete="off" placeholder="选择结束时间"/>
										<div class="s_del_icon" (click)='del_date()'>x</div>
									</div>
								</div>
								<button type="button" class="btn btn-primary" (click)="table_search()">查询
								</button><button type="button" class="btn btn-primary" (click)="dowmLoad_data()">下载</button>
							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>设备ID</th>
										<th>车牌号</th>
										<th>重量(设备)</th>
										<th>重量(实物)</th>
										<th>时间</th>
										<th>mvv1</th>
										<th>mvv2</th>
										<th>mvv3</th>
										<th>mvv4</th>
										<th>mvv5</th>
										<th>mvv6</th>
										<th>mvv7</th>
										<th>mvv8</th>
										<th>mvv9</th>
										<th>mvv10</th>
										<th>mvv11</th>
										<th>mvv12</th>
										<th>mvv13</th>
										<th>mvv14</th>
										<th>mvv15</th>
										<th>mvv16</th>
										<th>删除</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of tableData" >
										<td>{{row.deviceId}}</td>
										<td>{{row.carNumber}}</td>
										<td>{{row.weightForDevice}}</td>
										<td>{{row.weightForReal}}</td>
										<td>{{row.uploadDate}}</td>
										<td>{{row.mvv1}}</td>
										<td>{{row.mvv2}}</td>
										<td>{{row.mvv3}}</td>
										<td>{{row.mvv4}}</td>
										<td>{{row.mvv5}}</td>
										<td>{{row.mvv6}}</td>
										<td>{{row.mvv7}}</td>
										<td>{{row.mvv8}}</td>
										<td>{{row.mvv9}}</td>
										<td>{{row.mvv10}}</td>
										<td>{{row.mvv11}}</td>
										<td>{{row.mvv12}}</td>
										<td>{{row.mvv13}}</td>
										<td>{{row.mvv14}}</td>
										<td>{{row.mvv15}}</td>
										<td>{{row.mvv16}}</td>
										<td>
											<button type="button" class="" (click)='delRow(row)'>删除</button>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount"
						           [rows]="pageSize"
						           [currentPage]="curPage - 1"
						           (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
</div>
